Skip to content

Instantly share code, notes, and snippets.

@Rangizingo
Rangizingo / brainstorm.md
Created December 31, 2025 12:22
My ClaudeCode custom commands
description
Critical analysis of problems with root cause identification before proposing solutions

Brainstorm - Problem Analysis & Solution Design

Thoroughly analyze the current problem before proposing any solutions. Focus on identifying root causes and asking clarifying questions.

Phase 1: Critical Analysis

@artemgetmann
artemgetmann / claude-code-token-saving-guide.md
Last active January 1, 2026 22:11
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.

@PedroMPagani
PedroMPagani / RedisAPI.java
Last active January 1, 2026 22:05
Redis util class - clean - fast - reliable - high volume of traffic
import com.github.luben.zstd.Zstd;
import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisURI;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.codec.ByteArrayCodec;
import io.lettuce.core.pubsub.RedisPubSubAdapter;
import io.lettuce.core.pubsub.StatefulRedisPubSubConnection;
import io.lettuce.core.pubsub.api.async.RedisPubSubAsyncCommands;
import io.netty.util.concurrent.DefaultThreadFactory;
import org.bukkit.Bukkit;
@Vigrond
Vigrond / jellyfinchromecast.md
Last active January 1, 2026 22:03
Jellyfin with Chromecast
@kolyanok
kolyanok / gist:505f9ac88d4255ffac9a95b6d9e6978e
Created March 12, 2022 13:45
Обход блокировок роскомнадзора без прокси и VPN
Обход блокировок роскомнадзора без прокси и VPN!
Среди пользователей интернета в России, наверное, уже не осталось тех, кто ни разу не задавался вопросом, как возможно обойти блокировки роскомнадзора. Большинство сайтов и гайдов обычно советуют использовать Tor, прокси или VPN. Эти решения, несмотря на свою относительную простоту и очевидность, имеют ряд недостатков: во-первых, VPN или прокси бывают медленными, из-за чего их использование может быть некомфортным. Во-вторых, эти способы обхода зачастую необходимо каждый раз включать и выключать. В-третьих, хороших бесплатных VPN/прокси не так много.
Однако существует способ обхода цензуры без использования каких-либо сторонних серверов. Принцип его работы, если объяснять совсем просто, заключается в изменении исходящих запросов к сайтам, позволяющим обойти фильтры DPI большинства российских интернет-провайдеров, ограничивающих доступ к сайтам.
Для компьютеров на Windows есть удобная утилита от ValdikSS, называющаяся GoodbyeDPI, ее достаточно установить как
@avonmoll
avonmoll / 0_how-I-use-papis.md
Last active January 1, 2026 22:03
A Guide on How to Use papis Sensibly

Installation

Easiest, if you have pip:

$ pip install papis

Adding Documents

Most of the time I add documents via their DOI. For example, I'll be on IEEExplore or ResearchGate and see a paper that I either want to read or know for sure I'll want to cite. So I simply copy the DOI and run

@savayer
savayer / usage.ts
Created May 3, 2024 11:30
show notification modal about new version available
const currentVersion = Constants.expoConfig.version;
getAppInfoFromTheStore(country)
.then((appInfo) => {
if (isValidVersionFormat(appInfo?.version)) {
const [currentMajor, currentMinor, currentPatch] = currentVersion
.split('.')
.map(Number);
const [newMajor, newMinor, newPatch] = appInfo.version
.split('.')
@eigenscribe
eigenscribe / repo-to-txt.py
Created January 1, 2026 21:57
Compiles code from specified documents types into a single .txt file. Meant as an information pipeline between GitHub repo documents and LLM chats, but can be used for other things I'm sure.
from pathlib import Path
from typing import Iterable
# =============================================================================
# Configuration
# =============================================================================
OUTPUT_FILE = "snapshot.txt"
MAX_FILE_SIZE = 200_000 # bytes
@jboner
jboner / latency.txt
Last active January 1, 2026 21:53
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD